// Basic assertion tests converted to `nrc test` style.

func test_basic_int_equality() {
    var x int = 42
    assert(x == 42, "x should be 42")
}

func test_arithmetic() {
    var a int = 10
    var b int = 20
    assert(a + b == 30, "a + b should be 30")
}

func test_string_equality() {
    var str String = "hello"
    assert(str == "hello", "str should be 'hello'")
}

func test_assert_eq_helper() {
    assert_eq(5 * 2, 10, "5 * 2 should equal 10")
}

func test_assert_ne_helper() {
    assert_ne(5, 6, "5 should not equal 6")
}

func test_assert_true_false() {
    assert_true(3 == 3, "3 == 3 should be true")
    assert_false(10 == 5, "10 == 5 should be false")
}

func test_assert_panics() {
    assert_panics(func() {
        panic("boom")
    }, "panic should have occurred")
}
